﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _19_HashTable
{
    class Program
    {
        static void Main(string[] args)
        {
            Hashtable ht = new Hashtable();
            ht.Add(1, 2);
            ht.Add(2, "zhangshan");
            ht[false] = "haisdnak";
            ht[3] = "xinlaode";

            foreach (var i in ht.Keys){
                Console.WriteLine("键是{0},值是{1}",i, ht[i]);
            }
            Console.ReadKey();
        }
    }
}
